<!-- Main content -->
<section class="content">
	<div class="row">
			<div class="col-xs-12">
				<div class="box">
					<div class="box-body table-responsive">
						<table id="example1" class="table table-bordered table-striped">
							<thead>
								<tr>
									<th>&nbsp;</th>
									<th>Nome</th>
									<th>Nome Fantasia</th>
								</tr>
							</thead>
							<tbody>
									<?php 
									$clientes = json_decode($clientes);
										foreach ($clientes as $linha) { 
									?>
										<tr>
											<form id="select-cliente" method="post" action="<?php echo base_url('pedido/adicionarProduto');?>">
												<input type="hidden" name="id_cliente" value="<?php echo $linha->Cliente; ?>" />
												<td width="20px">
													<button type="submit" class="btn btn-default btn-sm"> <!-- href="<?php //echo base_url('pedido/adicionarProduto/'.$linha->Cliente);?>">  -->
														<i class="fa fa-plus"></i>
													</button>
												</td>
												<td><?php echo $linha->Nome; ?></td>
												<td><?php echo $linha->Fantasia; ?></td>
											</form>
										</tr>
									<?php } ?>
							</tbody>
							<tfoot>
								<tr>
									<th>&nbsp;</th>
									<th>Nome</th>
									<th>Nome Fantasia</th>
								</tr>
							</tfoot>
						</table>
					<div>
						<a class ="btn btnAdminAlegro" onClick="history.go(-1)">{botaovoltar}</a>
					<!-- 
						<a class ="btn btnAdminAlegro" href="<?php //echo base_url('pedido/listar');?>">{botaovoltar}</a>
					 -->
					</div>
				</div>
				<!-- /.box-body -->
			</div>
			<!-- /.box -->
		</div>
	</div>
</section>
